package com.meichis.yndms.adapter;

import android.content.Context;

import com.meichis.mcsappframework.adapter.recyclerview.CommonAdapter;
import com.meichis.mcsappframework.adapter.recyclerview.base.ViewHolder;
import com.meichis.yndms.R;
import com.meichis.yndms.model.DealerPortUsage;

import java.util.List;

public class DealerPortUsageAdapter extends CommonAdapter<DealerPortUsage> {


    public DealerPortUsageAdapter(Context context, int layoutId, List<DealerPortUsage> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, DealerPortUsage dealerPortUsage, int position) {
        holder.setText(R.id.tv_name, dealerPortUsage.getUserName());
        holder.setText(R.id.tv_sj, String.valueOf(dealerPortUsage.getSJDayNum()));
        holder.setText(R.id.tv_jh, String.valueOf(dealerPortUsage.getJHDayNum()));
        holder.setText(R.id.tv_usage, dealerPortUsage.getPortAttendance());
    }
}
